Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event loop thread cpu usage #476

Merged
merged 2 commits into from
Sep 28, 2017
Merged

Conversation

hhellyer
Copy link
Member

This adds cpu percentage used during the last measurement interval to the event loop statistics.
This is different from the cpu usage for the process it is just the measurement for the event loop thread.

See: RuntimeTools/appmetrics-dash#114 for more details on why this is required.

Currently this should work on Linux, Mac and AIX. Windows support could be added via a similar solution to: nodejs/node-report#99

LOOP_INTERVAL so we can see if a Node.js process is CPU bound.
@codecov-io
Copy link

codecov-io commented Sep 27, 2017

Codecov Report

Merging #476 into master will increase coverage by 0.19%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #476      +/-   ##
==========================================
+ Coverage   60.52%   60.71%   +0.19%     
==========================================
  Files          49       49              
  Lines        3184     3200      +16     
==========================================
+ Hits         1927     1943      +16     
  Misses       1257     1257
Impacted Files Coverage Δ
appmetrics-api.js 90.43% <ø> (ø) ⬆️
src/plugins/node/loop/nodeloopplugin.cpp 97.77% <100%> (+0.48%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 763f90c...88e54d7. Read the comment docs.

Copy link
Member

@tobespc tobespc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but can you raise an issue to get this in for windows

@tobespc tobespc merged commit aa28d53 into RuntimeTools:master Sep 28, 2017
@sjanuary sjanuary added this to the 3.1 milestone Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants